package org.bees.cms.web.util;

public abstract class Strings {

	public static String[] split(String start, String end, String separator, String value) throws Exception {
		value = value.trim();
		if (start != null && !start.equals("") && value.startsWith(start)) {
			value = value.substring(1);
		}
		if (end != null && !end.equals("") && value.endsWith(end)) {
			value = value.substring(0, value.length() - 1);
		}
		return value.split(separator);
	}

}
